{include file='yxworker/w_head2'}
<link rel="stylesheet" type="text/css" href="{$_G['URL']['FCWORK_CSS']}css/style.css?v=5">
<style type="text/css">
    a:visited{text-decoration: none;}
    .homeTag{
        position: fixed;
        z-index: 51;
        width: 60px;
        height: 60px;
        right: 10px;
        bottom: 20px;
    }
    .setTitle{
        background: url("https://css2020.yixuan.net/2020css/fcworker/images/settitbg.png") center no-repeat;
        text-align: center;
        line-height: 1.37rem;
        color: #fff;
        font-size: .45rem;
        width: 7.05rem;
        height: 1.37rem;
        background-size: 100% 1.37rem;
        margin: .2rem auto 0;
        position: fixed;
        left: 0.2rem;
        top: 0;
        z-index: 2;
        overflow: hidden;
    }
    .h167{
        height: 1.67rem;
    }
    .setTitle a{
        display: block;
        background: url("https://css2020.yixuan.net/2020css/fcworker/images/backBtn.png") center no-repeat;
        width: .19rem;
        height: .32rem;
        background-size: 100% auto;
        position: absolute;
        top: .44rem;
        left: .12rem;
    }
    .s_title{
        background: none !important;
        font-weight: normal !important;
    }
    .new_tr{
        background: #edf6ff;
        line-height: .7rem;
    }
</style>
<div id="mescroll" class="mescroll">
    <div id="app">
        <a href="/{php echo createMobileUrl('x_index',array('themeid'=>$themeid));}" class="homeTag"><img src="{$_G['URL']['FCWORK_CSS']}images/homeBtn.png"></a>
        <div class="setTitle">
            {if $_P['fh']=='home'}
            <a href="/{php echo createMobileUrl('x_index',array('themeid'=>$themeid));}"></a>
            {else}
            <a href="javascript:history.back(-1)"></a>
            {/if}
            {php echo empty($shop)?'':mb_substr($shopname,0,4,'utf-8').'-';}{$tips}排名
        </div>
        <div class="h167"></div>

        <div class="s_items">
            <div class="s_title" >
                <div class="tabTit">{$tips}_总排行榜{if !empty($notworker)}【{$notworker}个定单无客服】{/if}
                </div>
            </div>
            <!--  -->
            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                <tr class="new_tr">
                    <td style="width: 2%;"></td>
                    <td style="width: 7%;color: #198bcb; text-align: right;">排名</td>
                    <td style="width: 12%;color: #198bcb">姓名</td>
                    <td style="width: 10%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></td>
                    <td style="width: 10%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></td>
                    <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></td>
                    <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,));}">成交</a></td>
                    <td style="width: 10%;"><a {if $paixu!='zx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zx'));}">直销</a></td>
                    <td style="width: 10%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></td>
                    <td style="width: 10%;"><a {if $paixu!='refund'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'refund'));}">退款</a></td>
                    <td style="width: 10%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></td>
                    <td style="width: 2%;"></td>
                </tr>
                </thead>
                <tbody>
                {loop $team $index $row}
                <tr>
                    <td> </td>
                    <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                    {if $myworker['level'] != '3'}
                    <td style="line-height: 0.3rem;"><a style="margin:auto;" href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'op'=>'report','uid'=>$row['uid']));}"><text style="color: rgb(167, 167, 167);font-size: 0.24rem;">{$row['teamname']}</text><br><text style="color: #198bcb;font-size: 0.24rem;">{$row['name']}</text></a></td>
                    {else}
                    <td style="line-height: 0.3rem;"><a style="margin:auto;" href="#"><text style="color: rgb(167, 167, 167);font-size: 0.24rem;">{$row['teamname']}</text><br><text style="color: #198bcb;font-size: 0.24rem;">{$row['name']}</text></a></td>
                    {/if}
                    <td >{$row['newfans']}</td>
                    <td style="color: #198bcb">{$row['forward']}</td>
                    <td >{$row['scansum']}</td>
                    <td style="color: #198bcb">{$row['record']}</td>
                    <td>{$row['recordzx']}</td>
                    <td>{$row['recordxx']}</td>
                    <td>{$row['refund']}</td>
                    <td style="color: #198bcb">{$row['fee']}</td>
                    <td> </td>
                </tr>
                {/loop}
                </tbody>
            </table>

        </div>


        <div class="s_items">
            <div class="s_title" >
                <div class="tabTit">{$tips}_今日排行榜
                </div>
            </div>

            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                <tr class="new_tr">
                    <td style="width: 2%;"></td>
                    <td style="width: 7%;color: #198bcb; text-align: right;">排名</td>
                    <td style="width: 12%;color: #198bcb">姓名</td>
                    <td style="width: 10%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></td>
                    <td style="width: 10%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></td>
                    <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></td>
                    <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,));}">成交</a></td>
                    <td style="width: 10%;"><a {if $paixu!='zx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zx'));}">直销</a></td>
                    <td style="width: 10%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></td>
                    <td style="width: 10%;"><a {if $paixu!='refund'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'refund'));}">退款</a></td>
                    <td style="width: 10%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></td>
                    <td style="width: 2%;"></td>
                </tr>
                </thead>
                <tbody>
                {loop $teamtoday $index $row}
                <tr>
                    <td> </td>
                    <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                    {if $myworker['level'] != '3'}
                    <td style="line-height: 0.3rem;"><a style="margin:auto;" href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'op'=>'report','uid'=>$row['uid']));}"><text style="color: rgb(167, 167, 167);font-size: 0.24rem;">{$row['teamname']}</text><br><text style="color: #198bcb;font-size: 0.24rem;">{$row['name']}</text></a></td>
                    {else}
                    <td style="line-height: 0.3rem;"><a style="margin:auto;" href="#"><text style="color: rgb(167, 167, 167);font-size: 0.24rem;">{$row['teamname']}</text><br><text style="color: #198bcb;font-size: 0.24rem;">{$row['name']}</text></a></td>
                    {/if}
                    <td >{$row['newfans']}</td>
                    <td style="color: #198bcb">{$row['forward']}</td>
                    <td >{$row['scansum']}</td>
                    <td style="color: #198bcb">{$row['record']}</td>
                    <td>{$row['recordzx']}</td>
                    <td>{$row['recordxx']}</td>
                    <td>{$row['refund']}</td>
                    <td style="color: #198bcb">{$row['fee']}</td>
                    <td> </td>
                </tr>
                {/loop}
                </tbody>
            </table>
        </div>


        <div class="s_items">
            <div class="s_title" >
                <div class="tabTit">{$tips}_昨日排行榜
                </div>
            </div>

            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                <tr class="new_tr">
                    <td style="width: 2%;"></td>
                    <td style="width: 7%;color: #198bcb; text-align: right;">排名</td>
                    <td style="width: 12%;color: #198bcb">姓名</td>
                    <td style="width: 10%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></td>
                    <td style="width: 10%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></td>
                    <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></td>
                    <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,));}">成交</a></td>
                    <td style="width: 10%;"><a {if $paixu!='zx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zx'));}">直销</a></td>
                    <td style="width: 10%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></td>
                    <td style="width: 10%;"><a {if $paixu!='refund'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'refund'));}">退款</a></td>
                    <td style="width: 10%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></td>
                    <td style="width: 2%;"></td>
                </tr>
                </thead>
                <tbody>
                {loop $teamyesterday $index $row}
                <tr>
                    <td> </td>
                    <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                    {if $myworker['level'] != '3'}
                    <td style="line-height: 0.3rem;"><a style="margin:auto;" href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'op'=>'report','uid'=>$row['uid']));}"><text style="color: rgb(167, 167, 167);font-size: 0.24rem;">{$row['teamname']}</text><br><text style="color: #198bcb;font-size: 0.24rem;">{$row['name']}</text></a></td>
                    {else}
                    <td style="line-height: 0.3rem;"><a style="margin:auto;" href="#"><text style="color: rgb(167, 167, 167);font-size: 0.24rem;">{$row['teamname']}</text><br><text style="color: #198bcb;font-size: 0.24rem;">{$row['name']}</text></a></td>
                    {/if}
                    <td >{$row['newfans']}</td>
                    <td style="color: #198bcb">{$row['forward']}</td>
                    <td >{$row['scansum']}</td>
                    <td style="color: #198bcb">{$row['record']}</td>
                    <td>{$row['recordzx']}</td>
                    <td>{$row['recordxx']}</td>
                    <td>{$row['refund']}</td>
                    <td style="color: #198bcb">{$row['fee']}</td>
                    <td> </td>
                </tr>
                {/loop}
                </tbody>
            </table>

        </div>


        <div class="s_items">
            <div class="s_title" >
                <div class="tabTit">{$tips}_前日排行榜
                </div>
            </div>

            <table class="lm_table" >
                <thead  style="background-color:#ffffff">
                <tr class="new_tr">
                    <td style="width: 2%;"></td>
                    <td style="width: 7%;color: #198bcb; text-align: right;">排名</td>
                    <td style="width: 12%;color: #198bcb">姓名</td>
                    <td style="width: 10%;"><a {if $paixu!='xfs'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></td>
                    <td style="width: 10%;"><a {if $paixu!='zf'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></td>
                    <td style="width: 10%;"><a {if $paixu!='ll'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></td>
                    <td style="width: 10%;"><a {if $paixu!=''}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,));}">成交</a></td>
                    <td style="width: 10%;"><a {if $paixu!='zx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'zx'));}">直销</a></td>
                    <td style="width: 10%;"><a {if $paixu!='xx'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></td>
                    <td style="width: 10%;"><a {if $paixu!='refund'}style="color: #5a5757;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'refund'));}">退款</a></td>
                    <td style="width: 10%;"><a {if $paixu!='fee'}style="color: #198bcb;"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></td>
                    <td style="width: 2%;"></td>
                </tr>
                </thead>
                <tbody>
                {loop $teambeforeyesterday $index $row}
                <tr>
                    <td> </td>
                    <td style="text-align: right;"><span>{php echo $index+1;}</span></td>
                    {if $myworker['level'] != '3'}
                    <td style="line-height: 0.3rem;"><a style="margin:auto;" href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'op'=>'report','uid'=>$row['uid']));}"><text style="color: rgb(167, 167, 167);font-size: 0.24rem;">{$row['teamname']}</text><br><text style="color: #198bcb;font-size: 0.24rem;">{$row['name']}</text></a></td>
                    {else}
                    <td style="line-height: 0.3rem;"><a style="margin:auto;" href="#"><text style="color: rgb(167, 167, 167);font-size: 0.24rem;">{$row['teamname']}</text><br><text style="color: #198bcb;font-size: 0.24rem;">{$row['name']}</text></a></td>
                    {/if}
                    <td >{$row['newfans']}</td>
                    <td style="color: #198bcb">{$row['forward']}</td>
                    <td >{$row['scansum']}</td>
                    <td style="color: #198bcb">{$row['record']}</td>
                    <td>{$row['recordzx']}</td>
                    <td>{$row['recordxx']}</td>
                    <td>{$row['refund']}</td>
                    <td style="color: #198bcb">{$row['fee']}</td>
                    <td> </td>
                </tr>
                {/loop}
                </tbody>
            </table>

        </div>
        <div class="item" style="padding: 0.5rem; line-height: 0.4rem;text-align: center;">
            <p>未出现在排行榜中的，代表当日没有任何宣传。</p>
            <p style="color: #198bcb">点击标题可按关键字排名</p>
            <p>点击姓名可查该员工的日报</p>
            <!-- <p>点击成交数字可查对应数据</p> -->
        </div>
        {include file='yxworker/w_foot_yixuan'}
    </div>
</div>
<!--  下拉刷新-->
<script>
    const mescroll = new MeScroll("mescroll", {
        down: {
            auto: false,
            callback: () => {
                mescroll.endSuccess();
                setTimeout(() => {
                    window.location.reload();
                },500)
            }
        },
        up: {
            use: false
        }
    })
</script>
<script>
    $('.lm_table tr').click(function(){
        console.log(1);
        $(this).next('.sib').toggle();
    })
</script>
{include file='fcworker/fc_base_foot'}
<style>
    .pd0 { padding-bottom:0;}
    .pd0 tr:last-child td { border-bottom:none;}
    .sib { display:none;}
</style>
